Inhibit flymake lexical cookie warning in *scratch* (bug#70068)
authorMattias Engdegård <mattiase@acm.org>
Mon, 8 Apr 2024 17:07:19 +0000 (19:07 +0200)
committerMattias Engdegård <mattiase@acm.org>
Tue, 9 Apr 2024 08:56:44 +0000 (10:56 +0200)
commitcda5155c618d774810ce5e044efe1101846054ac
treec8eee5bd9217a76dc2b4817674e5e1c8f19cb663
parent2c6eb49fa2d62fc07ccecdd1c074235064bf5375
Inhibit flymake lexical cookie warning in *scratch* (bug#70068)

Add a hack to prevent flymake from complaining about a missing lexical
cookie when enabled in *scratch*.

* lisp/emacs-lisp/bytecomp.el
(bytecomp--inhibit-lexical-cookie-warning): New variable.
(byte-compile-file): Use it to gate the warning.
* lisp/progmodes/elisp-mode.el (elisp-flymake-byte-compile):
Set the inhibitor when spawning a check in lisp-interaction-mode.
lisp/emacs-lisp/bytecomp.el
lisp/progmodes/elisp-mode.el